//
//  LayoutTableViewCell.m
//  Item A House
//
//  Created by dlios on 15/5/26.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "LayoutTableViewCell.h"

@implementation LayoutTableViewCell
- (void)dealloc
{
    [_image release];
    [_alias release];
    [_name release];
    [_area release];
    [_orient release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createLabel];
    }
    return self;
}
- (void)createLabel
{
    self.image = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, [UIScreen mainScreen].bounds.size.width / 2 - 40, 80)];
    [self.contentView addSubview:self.image];
    [self.image release];
    
    self.alias = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 - 20, 10, [UIScreen mainScreen].bounds.size.width / 2 + 20, 20)];
    [self.alias setFont:[UIFont fontWithName:@"Helvetica-Bold" size:16]];
    [self.contentView addSubview:self.alias];
    [self.alias release];
    
    self.name = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 - 20, 35, [UIScreen mainScreen].bounds.size.width / 2 + 20, 10)];
    self.name.textColor = [UIColor colorWithWhite:0.3 alpha:0.8];
    self.name.font = [UIFont systemFontOfSize:16];;
    [self.contentView addSubview:self.name];
    [self.name release];
    
    self.area = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 - 20, 57, [UIScreen mainScreen].bounds.size.width / 2 + 20, 10)];
    self.area.textColor = [UIColor colorWithWhite:0.3 alpha:0.8];
    self.area.font = [UIFont systemFontOfSize:16];
    [self.contentView addSubview:self.area];
    [self.area release];
    
    self.orient = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 - 20, 80, [UIScreen mainScreen].bounds.size.width / 2 + 20, 10)];
    self.orient.font = [UIFont systemFontOfSize:16];
    self.orient.textColor = [UIColor colorWithWhite:0.3 alpha:0.8];
    [self.contentView addSubview:self.orient];
    [self.orient release];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
